using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._FileGeodatabase
{
    /// <summary>
    /// <para>Generate Licensed File Geodatabase</para>
    /// <para>Generates a license definition file (.licdef) that defines and restricts the display of contents in a file geodatabase.  The contents of the licensed file geodatabase can be viewed by creating  a license file (*.sdlic) and installing it with ArcGIS Administrator.  The license file is created using the Generate File Geodatabase License tool.</para>
    /// <para>生成许可定义文件 （.licdef），用于定义和限制文件地理数据库中内容的显示。 通过创建许可文件 （*.sdlic） 并使用 ArcGIS Administrator 进行安装，可以查看许可文件地理数据库的内容。 许可文件是使用生成文件地理数据库许可工具创建的。</para>
    /// </summary>    
    [DisplayName("Generate Licensed File Geodatabase")]
    public class GenerateLicensedFgdb : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public GenerateLicensedFgdb()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_fgdb">
        /// <para>Input File Geodatabase</para>
        /// <para>The unlicensed file geodatabase to make licensed.</para>
        /// <para>要获得许可的未授权文件地理数据库。</para>
        /// </param>
        /// <param name="_out_fgdb">
        /// <para>Output Licensed File Geodatabase</para>
        /// <para>The name of and location to create the licensed file geodatabase.</para>
        /// <para>用于创建许可文件地理数据库的名称和位置。</para>
        /// </param>
        /// <param name="_out_lic_def">
        /// <para>Output License Definition File</para>
        /// <para>The license definition file.</para>
        /// <para>许可证定义文件。</para>
        /// </param>
        public GenerateLicensedFgdb(object _in_fgdb, object _out_fgdb, object _out_lic_def)
        {
            this._in_fgdb = _in_fgdb;
            this._out_fgdb = _out_fgdb;
            this._out_lic_def = _out_lic_def;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Generate Licensed File Geodatabase";

        public override string CallName => "management.GenerateLicensedFgdb";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_fgdb, _out_fgdb, _out_lic_def];

        /// <summary>
        /// <para>Input File Geodatabase</para>
        /// <para>The unlicensed file geodatabase to make licensed.</para>
        /// <para>要获得许可的未授权文件地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input File Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_fgdb { get; set; }


        /// <summary>
        /// <para>Output Licensed File Geodatabase</para>
        /// <para>The name of and location to create the licensed file geodatabase.</para>
        /// <para>用于创建许可文件地理数据库的名称和位置。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Licensed File Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_fgdb { get; set; }


        /// <summary>
        /// <para>Output License Definition File</para>
        /// <para>The license definition file.</para>
        /// <para>许可证定义文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output License Definition File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_lic_def { get; set; }


        public GenerateLicensedFgdb SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}